package com.gnerv.sylvanas.framework.plugin.logger.appender;

import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.core.rolling.RollingFileAppender;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
 * @author Gnerv LiGen
 */
public class AppenderBuilder {


    LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory();

    Logger logger = LoggerFactory.getLogger(this.getClass());


    public RollingFileAppender rollingFileAppender() {

        List<ch.qos.logback.classic.Logger> loggerList = loggerContext.getLoggerList();




        RollingFileAppender rollingFileAppender = new RollingFileAppender();
        rollingFileAppender.setName("info_log");
        rollingFileAppender.setFile("./log/info.log");
        return new RollingFileAppender();
    }


}
